import 'package:flutter/material.dart';

class MessageData {
  String avatar; //图片地址
  String title;
  String subTitle;
  DateTime time;
  MessageType type;

  MessageData(this.avatar, this.title, this.subTitle, this.time, this.type);
}

enum MessageType { SYSTEM, PUBLIC, CHAT, GROUP }

List<MessageData> messageData = [
  MessageData(
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1550117055293&di=4229b8ca366f289ebfdba89026289dac&imgtype=0&src=http%3A%2F%2Fbcs.91.com%2Fpcsuite-dev%2Fimg%2F0%2F512_512%2F0452753ce72aa5018164715414629656.png',
      '大耳朵图图',
      '卡通',
      DateTime.now(),
      MessageType.CHAT),
  MessageData(
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1550117055294&di=dc1ecfe98ce9a072450f658a39d577fb&imgtype=0&src=http%3A%2F%2Fcdnimg103.lizhi.fm%2Faudio_cover%2F2016%2F09%2F29%2F2559592964947348999_320x320.jpg',
      '大耳朵图图',
      '卡通',
      DateTime.now(),
      MessageType.CHAT),
  MessageData(
      'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1550117055294&di=dc1ecfe98ce9a072450f658a39d577fb&imgtype=0&src=http%3A%2F%2Fcdnimg103.lizhi.fm%2Faudio_cover%2F2016%2F09%2F29%2F2559592964947348999_320x320.jpg',
      '大耳朵图图',
      '卡通',
      DateTime.now(),
      MessageType.CHAT),
];
